package com.cc.visitor.service;

import com.cc.visitor.entity.TemplateMsg;
import com.cc.visitor.entity.wechat.templateMessage.TemplateMsgParam;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.util.List;
import java.util.Map;

/**
 * @author chanchaw
 * @create 2024-12-02 19:29
 */
public interface TemplateMsgService {
    TemplateMsg select8TemplateId(String templateId);
    TemplateMsg select8Name(String sname);
    List<Map<String,Object>> getItemMapList(String templateId, List<Object> dataList);
    Map<String, Object> getTemplateMsgMap(String sname, String openId, String url, String miniProgramPath, List<Object> itemDataList);
    // 构建小程序订阅消息对象
    Map<String, Object> getMiniMsgMap(String sname, String openId, List<Object> itemDataList);
}
